const fs = require('fs')
fs.stat('test.txt',(err,stat)=>{
    console.log(stat);
})
const stat = fs.statSync('test.txt')
console.log('==================statSync======================');
console.log(stat);
console.log(stat.isFile());
console.log(stat.isDirectory());
fs.lstat('test.txt',(err,stat)=>{
    console.log('==================lstat===============');
    console.log(stat);
})
console.log('===============lstatSync=====================');
const a = fs.lstatSync('test.txt')
console.log(a);